﻿<div class="row">

	<div class="span3">

		<h2>Categories</h2>
		<div ng-include src="'/ngviews/catalog/_categorylist.html'" ></div>

	</div>

	<div class="span9">

		<h1>{{query}} ({{totalCount}} items)</h1>

		<div ng-repeat="product in productList" class="well media">
			<a href="/product/{{product.Code}}/{{product.Link}}" class="pull-left">
				<img ng-src="{{product.DefaultImage.Url}}" width="150" class="img-polaroid media-object" />
			</a>
			<div class="media-body">
				<h3 class="media-heading">{{product.Title}}</h3>
				<price value="{{product.BestPrice.Value}}" class="text-info"></price>
			</div>
			<hr />
			<div class="text-right">
				<button title="Add to cart" class="btn btn-primary" ng-click="addToCart(product, 1)">Add to cart</button>
			</div>
		</div>
	</div>

</div>